package org.sjlt.marc.resources;

import java.io.Serializable;

import org.json.simple.JSONAware;
import org.json.simple.JSONObject;

public class AliasPair implements Serializable, JSONAware 
{
	private static final long serialVersionUID = -5942074911000684858L;
	private String UserID;
	private String Alias;
	private String Pref_Name;
	private String LName;
	private String Picture;
	
	public AliasPair(String UserID, String Alias, String Pref_Name, String LName, String Picture)
	{
		this.UserID = UserID;
		this.Alias = Alias;
		this.Pref_Name = Pref_Name;
		this.LName = LName;
		this.Picture = Picture;
	}

	@SuppressWarnings("unchecked")
	@Override
	public String toJSONString() 
	{
		JSONObject obj = new JSONObject();
		
		obj.put("UserID", this.UserID);
		obj.put("Alias", this.Alias);
		obj.put("Pref_Name", this.Pref_Name);
		obj.put("LName", this.LName);
		obj.put("Picture", this.Picture);
		
		return obj.toJSONString();
	}

	public String getPicture() {
		return Picture;
	}

	public void setPicture(String picture) {
		Picture = picture;
	}

	public String getLName() {
		return LName;
	}

	public void setLName(String lName) {
		LName = lName;
	}

	public String getUserID() {
		return UserID;
	}

	public void setUserID(String userID) {
		UserID = userID;
	}

	public String getAlias() {
		return Alias;
	}

	public void setAlias(String alias) {
		Alias = alias;
	}

	public String getPref_Name() {
		return Pref_Name;
	}

	public void setPref_Name(String pref_Name) {
		Pref_Name = pref_Name;
	}
}
